home *** CD-ROM | disk | FTP | other *** search
Text File | 1996-04-01 | 7.8 KB | 299 lines | [TEXT/CWIE] |
-
- /*
- * This file was generated by the SOM Compiler.
- * FileName: :SFinance.xih.
- * Generated using:
- * SOM Precompiler somipc: 2.18
- * SOM Emitter emitxih.dll: 2.33
- */
-
- #ifndef SOM_DevUniv_SFinance_xih
- #define SOM_DevUniv_SFinance_xih
-
- #include <somcls.xh>
- #include <somcm.xh>
-
- #ifndef SOM_DevUniv_SFinance_xh
- #include <SFinance.xh>
- #endif
-
- /*
- * Set the scope of methods functions
- */
- #ifndef SOM_Scope
- #define SOM_Scope extern "C"
- #endif
-
- #define DevUniv_SFinance_MaxNoMethods 9
-
- /*
- * -- Instance Data
- */
- typedef void DevUniv_SFinanceData;
-
- /*
- * Trace/Debug macro
- */
- #ifndef DevUniv_SFinanceMethodDebug
- #define DevUniv_SFinanceMethodDebug(c,m) SOMMethodDebug(c,m)
- #endif
-
- /*
- * -- Method Macros for use in Method Procedures
- */
- #ifdef METHOD_MACROS
- #define _somInit somSelf->somInit
- #define _somUninit somSelf->somUninit
- #define _somDuplicateReference somSelf->somDuplicateReference
- #define _somCompareReference somSelf->somCompareReference
- #define _somRelease somSelf->somRelease
- #define _somFree somSelf->somFree
- #define _somCanDelete somSelf->somCanDelete
- #define _somGetClass somSelf->somGetClass
- #define _somGetClassName somSelf->somGetClassName
- #define _somGetSize somSelf->somGetSize
- #define _somIsA somSelf->somIsA
- #define _somRespondsTo somSelf->somRespondsTo
- #define _somIsInstanceOf somSelf->somIsInstanceOf
- #define _somDispatch somSelf->somDispatch
- #define _somClassDispatch somSelf->somClassDispatch
- #define _somCastObj somSelf->somCastObj
- #define _somResetObj somSelf->somResetObj
- #define _somPrintSelf somSelf->somPrintSelf
- #define _somDumpSelf somSelf->somDumpSelf
- #define _somDumpSelfInt somSelf->somDumpSelfInt
- #define _FutureValue somSelf->FutureValue
- #define _FutureValueWithPayments somSelf->FutureValueWithPayments
- #define _AnnuityPresentValue somSelf->AnnuityPresentValue
- #define _AnnuityMonths somSelf->AnnuityMonths
- #define _Payment somSelf->Payment
- #define _LoanAmount somSelf->LoanAmount
- #define _LoanMonths somSelf->LoanMonths
- #define _InterestRate somSelf->InterestRate
- #define _BalloonPayment somSelf->BalloonPayment
- #endif
-
-
- /*
- * Introduced methods
- */
-
- /* New Method: FutureValue */
- SOM_Scope double SOMLINK FINANFutureValue(DevUniv_SFinance *somSelf, Environment *ev,
- double presentValue,
- double annualInterestPercent,
- short compoundsPerYear,
- double years);
-
- /* New Method: FutureValueWithPayments */
- SOM_Scope double SOMLINK FINANFutureValueWithPayments(DevUniv_SFinance *somSelf, Environment *ev,
- double payment,
- short paymentsPerYear,
- short compoundsPerYear,
- double annualInterestPercent,
- double years);
-
- /* New Method: AnnuityPresentValue */
- SOM_Scope double SOMLINK FINANAnnuityPresentValue(DevUniv_SFinance *somSelf, Environment *ev,
- double payment,
- double annualInterestPercent,
- short paymentsPerYear,
- double years);
-
- /* New Method: AnnuityMonths */
- SOM_Scope double SOMLINK FINANAnnuityMonths(DevUniv_SFinance *somSelf, Environment *ev,
- double annuity,
- double monthlyWithdrawal,
- double annualInterestPercent);
-
- /* New Method: Payment */
- SOM_Scope double SOMLINK FINANPayment(DevUniv_SFinance *somSelf, Environment *ev,
- double amountBorrowed,
- double annualInterestPercent,
- double years);
-
- /* New Method: LoanAmount */
- SOM_Scope double SOMLINK FINANLoanAmount(DevUniv_SFinance *somSelf, Environment *ev,
- double monthlyPayment,
- double annualInterestPercent,
- double years);
-
- /* New Method: LoanMonths */
- SOM_Scope double SOMLINK FINANLoanMonths(DevUniv_SFinance *somSelf, Environment *ev,
- double amountBorrowed,
- double monthlyPayment,
- double annualInterestPercent);
-
- /* New Method: InterestRate */
- SOM_Scope double SOMLINK FINANInterestRate(DevUniv_SFinance *somSelf, Environment *ev,
- double amountBorrowed,
- double monthlyPayment,
- double years);
-
- /* New Method: BalloonPayment */
- SOM_Scope double SOMLINK FINANBalloonPayment(DevUniv_SFinance *somSelf, Environment *ev,
- double amountBorrowed,
- double monthlyPayment,
- double annualInterestPercent,
- double years);
-
- /*
- * -- Primary Implementation File Support
- */
- #if (defined(DevUniv_SFinance_Class_Source) || defined(SOM_Module_sfinance_Source))
-
- /*
- * -- The DevUniv_SFinance ClassData Structure
- */
-
- #if PRAGMA_IMPORT_SUPPORTED
- #pragma export list DevUniv_SFinanceClassData
- #endif
-
-
- /*
- * -- The DevUniv_SFinance Class Ancestor Table
- */
- static somClassDataStructure * SOMDLINK DevUniv_SFinanceClassAncestors [] = {
- (somClassDataStructure*) & SOMObjectClassData, /* parent */
- };
-
-
- static void DevUniv_SFinanceDLLD ( void ) { }
-
-
- /*
- * -- The DevUniv_SFinance Static Class Info Master Table
- */
- static somStaticClassInfo DevUniv_SFinanceSCI = {
- 70, /* layout version */
- (somClassDataStructure*) & DevUniv_SFinanceClassData, /* main token table */
- 0, /* no override procs table */
- DevUniv_SFinanceClassAncestors, /* ancestor table */
- DevUniv_SFinanceDLLD, /* DLLdesignator */
- 0, /* no special procs */
- 0, /* rtci slot */
- 0, /* count slot */
- 0, /* dynamic ancestry */
- 0, /* free */
- 0, /* free */
- 0, /* free */
- 0, /* free */
-
- /*
- * -- The DevUniv_SFinance Counts Table
- */
- (somStaticClassCounts *)
- "\x00\x00\x00\x01" /* majorversion */
- "\x00\x00\x00\x00" /* minorversion */
- "\x00\x00\x00\x01" /* flags */
- "\x00\x00" /* type code alignment */
- "\x00\x09" /* classTokenCount */
- "\x00\x01" /* numDirectParents */
- "\x00\x00" /* numMetaClasses */
- "\x00\x00" /* numOverriddenAncestors */
- "\x00\x00" /* numMigratedMethods */
- "\x00\x00" /* numSelectedInherited */
- "\x00\x00" /* numUnused */
- "\x00\x00" /* free */
- "\x00\x00" /* free */
- "\x00\x00" /* free */
- "\x00" /* free */
- ,
-
- {
- "DevUniv::SFinance", /* the class name */
- 0, /* no class instance data */
-
- /*
- * -- The DevUniv_SFinance Parent Versions Table
- */
- (somParentVersions *)
- "\x00\x00\x00\x46" /* majorversion */
- "\x00\x00\x00\x01" /* minorversion */
- ,
-
-
- /*
- * -- The DevUniv_SFinance Token Slot Usage Table
- */
- (somSlotUsage *)
- "\x00\x00\x00\x00",
-
-
- /*
- * -- The DevUniv_SFinance Method Signature Info
- */
- (somSignatureInfo *)
- "\x06\xd9\xc9\x93\x90" /* FutureValue */
- "\x07\xd9\xc9\x33\x99" /* FutureValueWithPayments */
- "\x06\xd9\xc9\x93\x90" /* AnnuityPresentValue */
- "\x05\xc9\xc9\x99" /* AnnuityMonths */
- "\x05\xc9\xc9\x99" /* Payment */
- "\x05\xc9\xc9\x99" /* LoanAmount */
- "\x05\xc9\xc9\x99" /* LoanMonths */
- "\x05\xc9\xc9\x99" /* InterestRate */
- "\x06\xc9\xc9\x99\x90" /* BalloonPayment */
- ,
-
-
- /*
- * -- The DevUniv_SFinance Class Method Names
- */
- "FutureValue\0"
- "FutureValueWithPayments\0"
- "AnnuityPresentValue\0"
- "AnnuityMonths\0"
- "Payment\0"
- "LoanAmount\0"
- "LoanMonths\0"
- "InterestRate\0"
- "BalloonPayment\0"
- ,
-
- 0, /* no override data table */
- 0, /* no migrated methods table */
- 0, /* no selected inherited */
- 0, /* unused */
-
- 0, /* free */
- 0, /* free */
- 0, /* free */
- 0, /* free */
- },
- };
-
- /*
- * -- The DevUniv_SFinance ClassData Structure
- */
- struct DevUniv_SFinanceClassDataStructure SOMDLINK DevUniv_SFinanceClassData = {
- 0, /* zero */
- & DevUniv_SFinanceSCI, /* SCI link */
- 0, /* instanceDataToken */
- 0, /* reserved */
- 0, /* reserved */
- 0, /* reserved */
- (somMToken) FINANFutureValue, /* FutureValue:method */
- (somMToken) FINANFutureValueWithPayments, /* FutureValueWithPayments:method */
- (somMToken) FINANAnnuityPresentValue, /* AnnuityPresentValue:method */
- (somMToken) FINANAnnuityMonths, /* AnnuityMonths:method */
- (somMToken) FINANPayment, /* Payment:method */
- (somMToken) FINANLoanAmount, /* LoanAmount:method */
- (somMToken) FINANLoanMonths, /* LoanMonths:method */
- (somMToken) FINANInterestRate, /* InterestRate:method */
- (somMToken) FINANBalloonPayment, /* BalloonPayment:method */
- };
-
-
- /*
- * Functions for attributes.
- */
-
- /*
- * Macros for initializers/destructors
- */
-
- #endif /* Primary Implementation Support */
-
- #endif /* SOM_DevUniv_SFinance_xih */
-